Python3Script Xojo Plugin

Python3XojoClass.Constructor Constructor (console safe)

Constructor that takes name and address of a init method.

Constructor(
   name as String,
   initMethod as Ptr)

Parameters

name
Name of the class as Python should see it
initMethod
Address of the method that should represent the classes constructor.

Remarks

Method signature for the initMethod is:
SomeMethodName(pySelf as Ptr, pyArgs as Ptr, kwds as Ptr) as Integer

Note also since you get the self in separate parameter then you get exactly same amount of parameters as were sent into the constructor in the pyArgs block, as opposed to one extra that you normally get in the class functions you register.

See Also

Python3XojoClass Class